%%daily new deaths from March 1, 2020 thru May 15, 2021
newdeaths_daily=[0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2
3
6
2
9
10
10
17
16
24
19
21
20
27
22
37
20
29
16
34
35
29
26
35
34
31
32
32
30
28
30
27
21
27
23
35
34
26
23
25
20
25
16
18
16
20
20
11
15
16
9
12
9
9
19
12
9
6
13
15
13
16
16
14
12
13
14
14
12
14
13
14
13
14
14
12
11
8
10
9
5
6
7
5
7
1
7
5
3
2
1
1
3
1
2
4
6
3
6
6
6
3
4
8
3
8
11
7
9
6
9
2
13
2
8
6
2
6
8
3
3
2
5
2
6
5
3
7
4
1
2
3
3
2
8
2
1
0
1
1
3
3
4
6
3
2
3
6
2
3
3
1
5
2
2
4
2
2
5
4
2
2
6
3
1
3
2
3
2
4
5
2
3
3
3
3
3
5
7
4
4
3
10
6
5
13
8
5
3
3
5
8
9
4
6
8
6
6
12
10
13
14
8
10
12
5
13
14
16
7
11
21
13
19
17
15
16
16
31
21
19
27
28
24
33
40
39
37
46
45
59
46
52
56
48
63
62
82
78
69
55
76
91
81
79
69
61
62
73
74
85
71
82
67
87
64
78
72
68
79
79
73
87
78
81
70
86
95
88
98
90
84
82
87
75
86
71
57
63
89
70
65
78
63
58
74
79
76
66
73
73
78
90
91
95
118
111
102
122
155
156
148
159
166
152
167
218
219
221
234
274
275
252
291
293
303
278
293
303
275
260
240
225
258
214
204
196
203
161
167
149
149
138
90
111
127
105
67
76
65
61
63
50
49
58
33
41
34
38
41
28
28
26
28
25
30
22
18
15
19
15
10
13
15
21
11
8
6
16
10
11
9
5
8
10
6
2
3
11
9
7
4
6
2
3
9
5
6
6
2
5
8
2
4
5
3
1
5
1
4
1
2
6
0
5
3
1
0
2
1
0
4
2
5
1
2
1
1
1
4
1
0
7];

%new deaths
dt_newdeaths = datetime('01/Mar/2020') : datetime('15/May/2021'); 
% Put data into timetable
tt = timetable(dt_newdeaths',newdeaths_daily,'VariableNames',{'NewDeaths'});
% Calculate weekly new deaths
newdeaths_weekly = retime(tt,'Weekly','sum');

